//
//  CaseManagerCell.m
//  QuickCure1
//
//  Created by zhouxuanhe on 16/11/1.
//  Copyright © 2016年 maoge. All rights reserved.
//

#import "CaseManagerCell.h"


@interface CaseManagerCell()


//cell里面的属性

@property (weak, nonatomic) IBOutlet UILabel *lbl_name;
@property (weak, nonatomic) IBOutlet UILabel *lbl_idCard;
@property (weak, nonatomic) IBOutlet UILabel *lbl_phone;
@property (weak, nonatomic) IBOutlet UILabel *lbl_time;
@property (weak, nonatomic) IBOutlet UILabel *lbl_disease;
@property (weak, nonatomic) IBOutlet UILabel *lbl_content;
@property (weak, nonatomic) IBOutlet UILabel *lbl_diseaseDetail;

@property (weak, nonatomic) IBOutlet UIImageView *imgv_picture;


@property (weak, nonatomic) IBOutlet UIButton *btn_delete;

@end
@implementation CaseManagerCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

#pragma mark -
#pragma mark - 删除cell
- (IBAction)buttonClickDelete:(UIButton *)sender {
    //传递block值,在caseManagerVC里面接收
    if (_BlockDeleteCell) {
        _BlockDeleteCell(self);
    }
}

//重写Model
-(void)setModel:(CaseManagerModel *)model
{
    _model = model;
    

     _lbl_name.text = model.lbl_name;
     _lbl_idCard.text = model.lbl_idCard;
     _lbl_phone.text = model.lbl_phone;
    
    _lbl_time.text = model.lbl_time;
    _lbl_content.text = model.lbl_content;
    _lbl_disease.text = model.lbl_diseaseType;
    
    _lbl_diseaseDetail.text = model.lbl_diseaseDetail;
    
    _imgv_picture.image = model.img_pic;
}










@end
